package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StFoodrawMapper;
import com.ruoyi.system.domain.StFoodraw;
import com.ruoyi.system.service.IStFoodrawService;

/**
 * 食品配料Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-07
 */
@Service
public class StFoodrawServiceImpl implements IStFoodrawService 
{
    @Autowired
    private StFoodrawMapper stFoodrawMapper;

    /**
     * 查询食品配料
     * 
     * @param id 食品配料主键
     * @return 食品配料
     */
    @Override
    public StFoodraw selectStFoodrawById(String id)
    {
        return stFoodrawMapper.selectStFoodrawById(id);
    }

    /**
     * 查询食品配料列表
     * 
     * @param stFoodraw 食品配料
     * @return 食品配料
     */
    @Override
    public List<StFoodraw> selectStFoodrawList(StFoodraw stFoodraw)
    {
        return stFoodrawMapper.selectStFoodrawList(stFoodraw);
    }

    /**
     * 新增食品配料
     * 
     * @param stFoodraw 食品配料
     * @return 结果
     */
    @Override
    public int insertStFoodraw(StFoodraw stFoodraw)
    {
        return stFoodrawMapper.insertStFoodraw(stFoodraw);
    }

    /**
     * 修改食品配料
     * 
     * @param stFoodraw 食品配料
     * @return 结果
     */
    @Override
    public int updateStFoodraw(StFoodraw stFoodraw)
    {
        return stFoodrawMapper.updateStFoodraw(stFoodraw);
    }

    /**
     * 批量删除食品配料
     * 
     * @param ids 需要删除的食品配料主键
     * @return 结果
     */
    @Override
    public int deleteStFoodrawByIds(String[] ids)
    {
        return stFoodrawMapper.deleteStFoodrawByIds(ids);
    }

    /**
     * 删除食品配料信息
     * 
     * @param id 食品配料主键
     * @return 结果
     */
    @Override
    public int deleteStFoodrawById(String id)
    {
        return stFoodrawMapper.deleteStFoodrawById(id);
    }
}
